package cn.itsource.ymcc.service;

import cn.itsource.ymcc.common.result.JsonResult;
import cn.itsource.ymcc.domain.Course;
import cn.itsource.ymcc.dto.AddCourseDto;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zcj
 * @since 2023-11-29
 */
public interface ICourseService extends IService<Course> {

    void save(AddCourseDto courseDto,Long currentId,String username);

    void updateById(AddCourseDto courseDto,Long currentId,String username);

    JsonResult courseInfo(Long id);

    JsonResult onLineCourse(List<Long> ids);

    JsonResult getDetailData(Long courseId);
}
